import { BaseEntity } from '@cool-midway/core';
import { Column, Entity, Index } from 'typeorm';

/**
 * gold模块-类型列表
 */
@Entity('gold_type_list')
export class GoldTypeListEntity extends BaseEntity {
  @Index()
  @Column({ comment: '名称', length: 100 })
  name: string;

  @Column({ comment: '金额', type: 'decimal', precision: 10, scale: 2 })
  amount: number;

  @Column({ comment: '金币', type: 'int' })
  gold: number;

  @Column({ comment: '备注', nullable: true })
  remark: string;
}
